home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
BASIC
/
LIB
/
EVENTSHELL
/
DOCS
/
FontPick
< prev
next >
Wrap
Text File
|
1996-04-11
|
2KB
|
77 lines
This extension library should be installed using the
LIBRARY command and initialised with a call to
FN_shell_FontPick_Init. This call must be made AFTER
PROCshell_Init has been called.
Additionally the messages from the file 'Resources.UK.
colourpick' should be added to the application's message
file.
This library implements a font selector dialog box
similar to the one specified in the Style Guide.
------------------------------------------------------------------------------
FN_shell_FontPick_Init
=> None
<= bool TRUE if module initialised correctly
FALSE otherwise
Should be called before making calls to routines in
this library.
------------------------------------------------------------------------------
PROCshell_AttachPopupFontPicker()
=> int window handle
int menu icon handle
int display icon handle (optional, may be -1)
str selection function (optional, may be "")
str preopen function (optional, may be "")
Provides for automatic updating of a display
icon when a selection is made from the
fontpicker dbox.
The button type of the menu icon is changed
to 3 to ensure the menu opens when <SELECT>
is used.
Selection FN (PROCshell_AttachPopupFontPicker)
=> str selected font name
real font width in pts
real font height in pts
<= int no meaning
Called when a valid selection has been made from
the fontpicker dbox.
Preopen FN (PROCshell_AttachPopupFontPicker)
=> int window handle of fontpicker dbox
<= int no meaning
Called just before the fontpicker opens so that the
appearance of the dbox can be adjusted. For example
the title can be changed with PROCshell_FontPicker_SetTitle,
and the current font can be set with a call to the
routine PROCshell_FontPicker_SelectFont.
------------------------------------------------------------------------------
PROCshell_FontPicker_SelectFont()
=> str font name
int width in pts
int height in pts
This routine sets the state of the fontpicker
dbox before it opens.
------------------------------------------------------------------------------
PROCshell_FontPicker_SetTitle()
=> str new title for dbox
------------------------------------------------------------------------------